package com.corpdata.app.contract.service;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.corpdata.app.contract.entity.ContractInfo;
import com.corpdata.common.result.Result;
import com.corpdata.core.base.BaseService;

/**
 * 合同表
 * @author wu
 * @email 64088839@qq.com
 * @date 2018-07-02 16:38:20
 * 
 */
public interface ContractInfoService extends BaseService<ContractInfo>{
	//新增合同
	Result insert(ContractInfo record, JSONArray reList, JSONArray staList,String fileId);
	//终止合同
	Result endContract(String contractId, JSONArray billList, String delBillStatus, String endDateStatus,
			String endRemark, String realEndDate,String reason);
	//获取有续签的合同id
	List<String> getReNewIdList();
	//合同到期通知
	Result sendDaoqiMessage();
	//验证合同编号是否重复
	int checkContractNum(String contractNum);
	//对自然到期合同终止操作
	void terminationContract();
	//对今天开始的合同关联工位处理
	void startContract();
	//删除合同相关临时数据
	void delTemporaryData();
	//获取合同到期天数
	int getDaoQiDays(String fkTeam);
}
